package com.wn.date20190805;
/**
 * 声明一个产品（Product）类,
 * 声明其属性（编号:no,名称：name，库存：stock）
 * @author song
 *
 */
public class Product
{
	private int no;//编号
	private String name;//名称
	private int stock;//库存
	public Product(int no,String name,int stock) 
	{
		this.no=no;
		this.name=name;
		this.stock=stock;
	}
	public int getNo()
	{
		return no;
	}
	public void setNo(int num)
	{
		this.no = num;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getStock()
	{
		return stock;
	}
	public void setStock(int stock)
	{
		this.stock = stock;
	}
	
}
